package com.example.test.advice.第六章_枚举和注解.建议90_小心注解继承;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
public @interface Desc {

    enum Color{
        White,Grayish,Yellow;
    }

    //默认颜色是白色
    Color c() default Color.White;
}
